public class Car {
    private String color;
    private String pingpai;
    private double price;

    public void forward(){
        System.out.println("汽车向前前进。");

    }
    public void back(){
        System.out.println("汽车向后后退。");
        
    }
    public void turn(){
        System.out.println("汽车开始转弯。");
    }
    public void show(){
        System.out.println("汽车颜色："+color+",汽车品牌："+pingpai+"汽车价格："+price);

    }
    public void setColor(String color){
        this.color=color;
    }
    public void setPingpai(String pingpai){
        this.pingpai=pingpai;
    }
    public void setPrice(double price){
        this.price=price;
    }

    public String getColor(){
        return color;
    }
    public String getPingpai(){
        return pingpai;
    }
    public double getPrice(){
        return price;
    }


    
}
